package mainFragment.bean;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/3/16.
 */

public class ZhaoShengSituationCoverBean {


    private String type;//用于分类
    private ArrayList<ZhaoShengSituationCoverbean> arrayList = new ArrayList<>();

    public ArrayList<ZhaoShengSituationCoverbean> getArrayList() {
        return arrayList;
    }

    public void addItem(ZhaoShengSituationCoverbean zhaoShengSituationCoverbean) {
        arrayList.add(zhaoShengSituationCoverbean);
    }

    public int getItemCount() {
        return arrayList.size() + 1;
    }

    public ZhaoShengSituationCoverbean getItem(int pPosition) {
        // Category排在第一位
        if (pPosition == 0) {
            return null;
        } else {
            return arrayList.get(pPosition - 1);
        }
    }

    public void setArrayList(ArrayList<ZhaoShengSituationCoverbean> arrayList) {
        this.arrayList = arrayList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static class ZhaoShengSituationCoverbean {
        private String year;
        private String plan;
        private String send;
        private String count;
        private String provline;
        private String rank;


        public String getYear() {
            return year;
        }

        public void setYear(String year) {
            this.year = year;
        }

        public String getPlan() {
            return plan;
        }

        public void setPlan(String plan) {
            this.plan = plan;
        }

        public String getSend() {
            return send;
        }

        public void setSend(String send) {
            this.send = send;
        }

        public String getCount() {
            return count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public String getProvline() {
            return provline;
        }

        public void setProvline(String provline) {
            this.provline = provline;
        }

        public String getRank() {
            return rank;
        }

        public void setRank(String rank) {
            this.rank = rank;
        }
    }
}
